import { BgItem } from "../common/BgItem";
import { ObjCreate } from "../common/ObjCreate";
type int = number;
//class WordBgItem
    
    export  class WordBgItem extends BgItem
    {
        constructor(arg1: int=0)
        {
            super(arg1);
            return;
        }

        public set word(arg1: string)
        {
            var loc1=0;
            if (!this.txt) 
            {
                this.txt = ObjCreate.createTextField("", 5, 3, 30, 30, null, null, true);
                this.txt.wordWrap = true;
                this.txt.multiline = true;
                this.txt.selectable = false;
                this.txt.mouseEnabled = false;
                loc1 = this.getChildIndex(_baseItem);
                this.addChildAt(this.txt, loc1);
            }
            this.txt.htmlText = arg1;
            return;
        }

        /* internal */ /* var */txt: Object /* flash.text.TextField */;
    }
